<?php
namespace App\Http\Controllers;

use Illuminate\Routing\Controller as BaseController;
use App\Models\Users;
use Illuminate\Container\Container;

class WelcomeController extends BaseController
{
    public function index(){
        $user = Users::first();
        $data = $user->getAttributes();
        $app = Container::getInstance();
        $factory = $app->make('view');
        return $factory->make('welcome')->with('data', $data);
    }
}